package org.uim.cricket.analyzer.analyze;

import java.io.FileReader;
import java.io.IOException;
import java.util.*;

public class AnalyzerProperties {
	
	public static String ANALYZER_CONFIG_FILE = "../config/analyzer.properties";
	
	private Properties prop = null;
	
	public AnalyzerProperties() throws IOException {
		this.init();
	}
	
	public AnalyzerProperties(String thefile) throws IOException {
		ANALYZER_CONFIG_FILE = thefile;
		this.init(); 
	}
	
	public void init() throws IOException {
		prop = new Properties();
		prop.load(new FileReader(ANALYZER_CONFIG_FILE)); 
	}
	
	public String getProperty(String key) {
		return prop.getProperty(key);
	}
	
}
